import request from '@/utils/request'

export function teaRoomList() {
  return request({
    url: '/admin/room/list',
    method: 'get',
    params: {}
  })
}
//修改或者添加卡座信息
export function seatsAddupdateInfo(data) {
  return request({
    url:'/admin/room/seats/update/info',
    method:'post',
    data:data
  })
}
//添加或者更新时间段
export function timeAddupdateInfo(data) {
  return request({
    url:'/admin/room/time/add/update',
    method:'post',
    data:data
  })
}
//删除时间段
export function deleteTime(data) {
  return request({
    url:'/admin/room/time/delete',
    method:'post',
    data:data
  })
}
//删除卡座
export function deleteSeats(data) {
  return request({
    url:'/admin/room/seats/delete',
    method:'post',
    data:data
  })
}